package com.example.portablefortheelderlybackground.soup;


import com.example.portablefortheelderlybackground.vo.weatherVo.weatherVo;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.web.client.RestTemplate;

import java.io.IOException;


@SpringBootTest(classes = test.class)
public class test {
    @Test
    public void testGetDishList() throws IOException {
        String url = "https://v0.yiketianqi.com/free/week?unescape=1&appid=72828466&appsecret=WWDXtzy1&cityid=101240301";
        RestTemplate restTemplate = new RestTemplate();
        weatherVo forObject = restTemplate.getForObject(url, weatherVo.class);
        assert forObject != null;
        System.out.println(forObject.getCity());
        System.out.println(forObject);
    }
}
